package com.meituan.catering.management.shop.biz.model;

import com.meituan.catering.management.shop.biz.model.common.ContactBO;
import com.meituan.catering.management.shop.biz.model.common.DateRangeBO;
import com.meituan.catering.management.shop.biz.model.enumeration.BusinessTypeEnum;
import com.meituan.catering.management.shop.biz.model.enumeration.EnabledEnum;
import com.meituan.catering.management.shop.biz.model.enumeration.ManagementTypeEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author:ale
 * @Date 2022/4/22 17:09
 * @Version 1.0
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ShopBO extends BaseBO {

    /**
     * 上级id
     */
    private Long superiorId;

    @NotBlank
    private String businessNo;

    /**
     * 门店名称
     */
    @NotBlank
    private String name;

    /**
     * 主营业态
     */
    @NotNull
    private BusinessTypeEnum businessType;

    /**
     * 管理类型
     */
    @NotNull
    private ManagementTypeEnum managementType;

    private final ContactBO contact = new ContactBO();

    private final DateRangeBO openingHours = new DateRangeBO();

    /**
     * 营业面积
     */
    private String businessArea;

    /**
     * 门店备注
     */
    private String comment;

    /**
     * 门店状态
     */
    @NotNull
    private EnabledEnum enabled;

}
